<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="java.io.*, java.sql.*, java.util.*,LS.*, date.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE html>
<html lang="UTF-8">
<style>
th,td {
	padding-bottom: 5px;
	padding-top: 5px;
}

#title{
	font: 17px;
	font-weight:bold;
	text-align: right;
	width: 90px;
}

#result{
	text-align:left;
}

#content{
	text-align: left;
}
#title, #content{
}
.txta{
	width:100%;
	height:100%;
}

#content{

}

b.text{
	font-size: 25px;
	margin-bottom: 10px;
}
h4,h1 {
	margin: 0px;
	padding: 0px;
}
th{
	height:30px;
	border-right: 1px solid #e5e5e5;
	border-bottom: 1px solid #e5e5e5;
}
tr{
	border-bottom: 1px solid #e5e5e5;
}
table {
	width: 100%;
}

.explain{
	color: red;
	font-size: 11px;
	border-bottom: 2px;
}
#outerview {
	padding-top: 10px;
	margin-left: 0px;
	text-align: center;
	background-color: #fff;
	border: 1px solid #e5e5e5;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
#outerview {
	width: 93%;
	min-height: 600px;
	padding: 0px;
}
#middleview{
	width: 90%;
	height: 450px;
	margin: 20px auto 0px auto;
	left: 50%;
	
}
#innerview {
	width: 100%;
 	height: 100%;
 	text-align: center;
	background-color: #fff;
	border: 1px solid #e5e5e5;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
} 

#innerviewleft,#innerviewright{
	margin-left:0px;
	padding-left:0px;
}

#plusview {
	margin:10px;
	margin-bottom:0px;
	text-align: left;
}
.tableview{
	width:100%;
	max-height:100%;
	left:50%;
}

.lendingdate{
	width:20%;
}
.notify{
	width:10%;
}
</style>
<head>
<script src="/LSsystem/assets/js/bootstrap.min.js"></script>

	
	<!-- styles시트 -->
	<link href="/LSsystem/assets/css/bootstrap.css" rel="stylesheet">
	<link rel="stylesheet" href="/LSsystem/assets/css/bootstrap.css">

	<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script>
	<script type="text/javascript" src="/LSsystem/assets/smartPop/jquery.smartPop.js"></script>
	<link rel="stylesheet" href="/LSsystem/assets/smartPop/jquery.smartPop.css" />
	
</head>
<body>

<div class="container">
			<div id="outerview">
				<div id="middleview">
					<form method="post">
					<div id="plusview" >
					
							
							<%
								String m;
								String i;
								String l;
								
								String b = request.getHeader("User-Agent");
								String browserInfo ="";
								String rightTableTDWidth ="";
								
								if(b.indexOf("MSIE 6.0") > 0 || b.indexOf("MSIE 7.0") > 0 || b.indexOf("MSIE 8.0") > 0||b.indexOf("MSIE 9.0") > 0||b.indexOf("MSIE 10.0") > 0) {
									i = new String(request.getParameter("item_name").getBytes("8859_1"), "EUC-KR");
									m = new String(request.getParameter("model_name").getBytes("8859_1"), "EUC-KR");
									l = new String(request.getParameter("lending_start_date").getBytes("8859_1"), "EUC-KR");
								} else {
									m = new String(request.getParameter("model_name").getBytes("iso-8859-1"), "utf-8");
									i = new String(request.getParameter("item_name").getBytes("iso-8859-1"), "utf-8");
									l = new String(request.getParameter("lending_start_date").getBytes("iso-8859-1"), "utf-8");
								}
							%>
							
							<b class="text"><%= m %></b>&nbsp;&nbsp;
					</div>
					<div id="innerview">
						<div id="innerviewleft" class="span10">
							<br>
							<br>
							<%
								Users u = (Users)session.getAttribute("user");
								if(u != null) {	// 로그인 했을때만 출력
							%>
							<div id="title" class="span2">소속학과</div><div id="content" class="span2">${departments[0].departments_name}</div><br><br>
							<div id="title" class="span2">학번</div><div id="content" class="span2"><%= u.getUser_id() %></div><br><br>
							<div id="title" class="span2">학년</div><div id="content" class="span2"><%= u.getGrade() %></div><br><br>
							<div id="title" class="span2">이름</div><div id="content" class="span2"><%= u.getName() %></div><br><br>
							<div id="title" class="span2">연락처</div><div id="content" class="span2"><%= u.getPhone() %></div><br><br>
							<div id="title" class="span2">품목명</div><div id="content" class="span2"><%= i %></div>&nbsp;&nbsp;&nbsp;
							<div id="title" class="span2">모델명</div><div id="content" class="span2"><%= m %></div><br><br>
							<div id="title" class="span2">대여일</div><div id="content" class="span2"><%= l %></div>&nbsp;&nbsp;&nbsp;
							<div id="title" class="span2">신청일자</div><div id="content" class="span2"><%=getDate.getdate(0)%></div><br><br>
							
							<% } %>
						</div>
					</div>
					</form>
				</div>
			</div>
		</div>
</body>
</html>